







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Counts the number of items in the collection that are equal to find.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static int CountEqual<T>( IEnumerable<T> collection, T find ) |
Visual Basic (Declaration) |
---|
Public Shared Function CountEqual(Of T) ( _ collection As IEnumerable(Of T), _ find As T _ ) As Integer |
Visual C++ |
---|
public: generic<typename T> static int CountEqual ( IEnumerable<T>^ collection, T find ) |
Parameters
- collection
- IEnumerable<(Of <T>)>
The collection to count items in.
- find
- T
The item to compare to.
Return Value
The number of items in the collection that are equal to find.
Type Parameters
- T
Remarks
The default sense of equality for T is used, as defined by T's
implementation of IComparable<T>.Equals or object.Equals.
See Also
Algorithms Class
Wintellect.PowerCollections Namespace